﻿using FreeSql.DatabaseModel;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "t_DeviceSetting", DisableSyncStructure = true)]
    public partial class TDeviceSetting
    {

        [JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        [JsonProperty]
        public DateTime CreateTime { get; set; }

        [JsonProperty, Column(StringLength = -2)]
        public string Description { get; set; }

        [JsonProperty, Column(Name = "deviceId")]
        public long DeviceId { get; set; }

        [JsonProperty, Column(StringLength = -2)]
        public string DeviceType { get; set; }

        [JsonProperty, Column(StringLength = -2)]
        public string State { get; set; }

        [JsonProperty, Column(Name = "T_Key", StringLength = -2)]
        public string TKey { get; set; }

        [JsonProperty, Column(Name = "T_Value", StringLength = -2)]
        public string TValue { get; set; }

        [JsonProperty, Column(StringLength = -2, IsNullable = false)]
        public string TerminalId { get; set; }

        [JsonProperty]
        public DateTime Time { get; set; }

    }

}
